class User:
    """
    User class
    """
    count = 0

    def __init__(self, name, age=None,sex=None,email=None):
        self.__name = name ## 私有属性
        self.age = age
        self.sex = sex
        self.email = email

    def set_name(self, name):
        self.__name = name
    def get_name(self):
        return self.__name

    def showi(self):
        print("Namei: %s, Agei: %d, Sexi: %s" % (self.get_name(), self.age, self.sex))
        self.show_help("str1", "str2")

    def print_info(self):
        print("Name: %s, Age: %d, Sex: %s" % (self.get_name(), self.age, self.sex))
    def show(self):
        print("Name: %s, Age: %d, Sex: %s" % (self.get_name(), self.age, self.sex))
    @classmethod
    def show_count(cls):
        print("Count: %d" % cls.count)
    @staticmethod
    def show_help(str1,str2):
        print(f"This is help message----{str1}-----{str2}")
    def __del__(self):
        print("User %s is deleted" % self.get_name())
class Parent:
    def __init__(self, name):
        self.parent_name = name  # 用不同名字保存

    def show(self):
        print("Parent name: %s" % self.parent_name)


class Child(Parent):
    def __init__(self, name):
        super().__init__(name)
        self.child_name = name  # 子类自己的名字

    sub_name = "sub_child"

    def show(self):
        print("Child is: %s" % self.sub_name)
        print("Parent name is: %s" % self.parent_name)  # ✅ 打印父类名字

